package com.ylkj.patient.moduleimpl.live;

import android.content.Context;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.yljk.mcbase.provider.WxShareService;
import com.yljk.mcconfig.constants.MCARouter;
import com.ylkj.patient.utils.WXShareUtils;

/**
 * 微信分享相关服务
 *
 * @author cenjunlei
 * @date 2021/11/24 20:03
 */
@Route(path = MCARouter.WX_SHARE_SERVICE)
public class WxShareServiceImpl implements WxShareService {

    @Override
    public void wxShareTxt(String openId, String text) {
        WXShareUtils.wxShareTxt(openId, text);
    }

    @Override
    public void wxShareUrlImage(String openId, String imgUrl) {
        WXShareUtils.wxShareUrlImage(openId, imgUrl);
    }

    @Override
    public void wxShareLocalImage(String openId, String imgUrl) {
        WXShareUtils.wxShareLocalImage(openId, imgUrl);
    }

    @Override
    public void wxShareBase64Image(String openId, String base64Img) {
        WXShareUtils.wxShareBase64Image(openId, base64Img);
    }

    @Override
    public void wxShareVideo(String openId, String videoUrl, String videoTitle, String videoDescription) {
        WXShareUtils.wxShareVideo(openId, videoUrl, videoTitle, videoDescription);
    }

    @Override
    public void wxShareH5(String openId, String webUrl, String webTitle, String webDescription) {
        WXShareUtils.wxShareH5(openId, webUrl, webTitle, webDescription);
    }

    @Override
    public void init(Context context) {

    }
}
